package com.touna.aop.config;

import com.touna.aop.service.impl.HttpRequestImpl;
import com.touna.aop.service.impl.WebserviceImpl;
import com.touna.aop.service.RequestService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * author: xl
 * time: 2018/6/29 15:58
 * description:
 **/
@Configuration
@EnableAspectJAutoProxy
@ComponentScan(basePackages = {"com.touna.aop"})
public class AopConfig {

    @Bean
    public RequestService httpReaquest(){
        HttpRequestImpl http = new HttpRequestImpl();
        return http;
    }


    @Bean
    public RequestService webReaquest(){
        WebserviceImpl http = new WebserviceImpl();
        return http;
    }



}
